package DateStructure;

import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-07-24
 * Time: 11:40
 */
public class Stack0 {
    public static void main(String[] args) {
        Stack<Integer> s=new Stack();
        for(int i=0;i<5;i++)
            s.push(i);
        System.out.println(s.pop());
        System.out.println(s.peek());
        System.out.println(s.isEmpty());
        System.out.println(s.size());
    }


}
